﻿<!DOCTYPE html>
<html lang="en">
<head>
    <title>宾果高校</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <link rel="stylesheet" href="../css/bootstrap.min.css">
    <link rel="stylesheet" href="../css/style.css">
    <link rel="stylesheet" href="../css/sweetalert.min.css" />
    <script src="../js/jquery-1.12.2.min.js"></script>
    <script src="../js/common.js"></script>
    <script src="../js/login.js"></script>
    <script src="../js/layer.js"></script>
    <script src="../js/angular.min.js"></script>
    <script src="../js/Controller.js"></script>
    <script src="../js/sweetalert.min.js"></script>
</head>
<body>
    <div id="searchPage"></div>
    <div style="margin-top: 20px;" class="main">
        <div ng-app="myApp" class="wrap">
            <div class="togglebar">
                <ul class="nav nav-tabs nav-justified">
                    <li class="active"><a id="popWisdombox">智慧搭配社团</a></li>
                    <li><a id="popOptionalbox">我自选的社团</a></li>
                    <li><a id="popChoosemebox">选择我的社团</a></li>
                </ul>
            </div>
            <div style="margin-top: 6px;"></div>
            <div id="modal" class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
                <div class="modal-dialog modal-sm">
                    <div class="modal-content">

                    </div>
                </div>
            </div>
            <div ng-controller="sysAssocCtrl" id="wisdom-box">
                <table class="table table-hover">
                    <tr>
                        <td>合作时间</td>
                        <td>合作编号</td>
                        <td>社团名称</td>
                        <td>社团地区（省-市-学校）</td>
                        <td>企业赞助书</td>
                        <td>社团活动书</td>
                        <td>付款状态</td>
                        <td>合作策划书状态</td>
                        <td>活动状态</td>
                        <td>资金动态</td>
                        <td>第一次活动反馈</td>
                        <td>第二次活动反馈</td>
                        <td>是否有平台线下团队服务</td>
                        <td>平台线下团队服务反馈</td>
                        <td>申请发票</td>
                    </tr>
                    <tr ng-repeat="x in names">
                        <td>{{x.ProItem.SubmitTime | date:'yyyy-MM-dd'}}</td>
                        <td>{{x.ProItem.ContractNO}}</td>
                        <td>{{x.ProItem.Association.Name}}</td>
                        <td>{{x.ProItem.Association.ProvinceName +'-' +x.ProItem.Association.CityName+'-'+ x.ProItem.Association.SchoolName}}</td>
                        <td><a href="#" tag="{{x.ProjectNO}}" onclick="Go(this, 'Books')">{{x.ProjectName}}</a></td>
                        <td><a href="#" tag="{{x.ProItem.ProjectNOSelf}}" onclick="Go(this, 'AssocBooks')">{{x.ProItem.ProjectSelf.ProjectName}}</a></td>

                        <td>{{x.MoneyStatus==0?'未付款':'已付款'}}</td>
                        <td>
                            {{x.BookStatus==0 ?"策划书生成中":"策划书已生成"}}<br />
                            {{x.ProItem.IsStudentConfirm==ture ?"学生已确认":"学生未确认"}}<br />
                            {{x.ProItem.IsCompanyConfirm==ture ?"企业已确认":"企业未确认"}}<br />

                        </td>
                        <td>{{x.ProItem.Status==1 ?"活动准备中":x.ProItem.Status==4 ?"活动进行中":"活动反馈中"}}</td>
                        <td>{{x.ProItem.MoneyStatus==0?'学生还没有获得钱':'学生已经获得钱'}}</td>
                        <td><span ng-repeat="y in x.ProItem.ListFiled |filter: {Fun:3}">{{y.FieldValue}}</span></td>
                        <td><span ng-repeat="y in x.ProItem.ListFiled |filter: {Fun:4}">{{y.FieldValue}}</span></td>

                        <td>{{x.ProItem.HaveOffLineTeam==ture?"有":"无"}}</td>
                        <td><span ng-repeat="y in x.ProItem.ListFiled |filter: {Fun:5}">{{y.FieldValue}}</span></td>

                        <td>{{x.ProItem.HaveInvoice==ture?"有":"无"}}</td>

                    </tr>
                </table>
            </div>
            <div ng-controller="selfAssocCtrl" id="optional-box">
                <table class="table table-hover">
                    <tr>
                        <td>合作时间</td>
                        <td>合作编号</td>
                        <td>社团名称</td>
                        <td>社团地区（省-市-学校）</td>
                        <td>企业赞助书</td>
                        <td>社团活动书</td>
                        <td>企业方案</td>
                        <td>付款状态</td>
                        <td>合作策划书状态</td>
                        <td>活动状态</td>
                        <td>资金动态</td>
                        <td>第一次活动反馈</td>
                        <td>第二次活动反馈</td>
                        <td>是否有平台线下团队服务</td>
                        <td>平台线下团队服务反馈</td>
                        <td>申请发票</td>
                    </tr>
                    <tr ng-repeat="x in names">
                        <td>{{x.ProItem.SubmitTime | date:'yyyy-MM-dd'}}</td>
                        <td>{{x.ProItem.ContractNO}}</td>
                        <td>{{x.Association.Name}}</td>
                        <td>{{x.ProItem.Association.ProvinceName +'-' +x.ProItem.Association.CityName+'-'+ x.ProItem.Association.SchoolName}}</td>
                        <td><a href="#" tag="{{x.ProItem.status=='3'?'':x.ProItem.ProjectNOSelf}}" onclick="Go(this, 'Books')">{{x.ProItem.status=='3'?'':x.ProItem.ProjectSelf.ProjectName}}</a></td>
                        <td><a href="#" tag="{{x.ProjectNO}}" onclick="Go(this, 'AssocBooks')">{{x.ProjectName}}</a></td>
                        <td><a href="#" tag="{{x.ProItem.status=='3'?x.ProItem.ProjectNOSelf:''}}" onclick="Go(this, 'Scheme')">{{x.ProItem.status=='3'?x.ProItem.ProjectSelf.ProjectName:''}}</a></td>

                        <td>{{x.MoneyStatus==0?'未付款':'已付款'}}</td>
                        <td>
                            {{x.BookStatus==0 ?"策划书生成中":"策划书已生成"}}<br />
                            {{x.ProItem.IsStudentConfirm==ture ?"学生已确认":"学生未确认"}}<br />
                            {{x.ProItem.IsCompanyConfirm==ture ?"企业已确认":"企业未确认"}}<br />

                        </td>
                        <td>{{x.ProItem.Status==1 ?"活动准备中":x.ProItem.Status==4 ?"活动进行中":"活动反馈中"}}</td>
                        <td>{{x.ProItem.MoneyStatus==0?'学生还没有获得钱':'学生已经获得钱'}}</td>
                        <td><span ng-repeat="y in x.ProItem.ListFiled |filter: {Fun:3}">{{y.FieldValue}}</span></td>

                        <td><span ng-repeat="y in x.ProItem.ListFiled |filter: {Fun:4}">{{y.FieldValue}}</span></td>

                        <td>{{x.ProItem.HaveOffLineTeam==ture?"有":"无"}}</td>
                        <td><span ng-repeat="y in x.ProItem.ListFiled |filter: {Fun:5}">{{y.FieldValue}}</span></td>
                        <td>{{x.ProItem.HaveInvoice==ture?"有":"无"}}</td>

                    </tr>
                </table>
            </div>
            <div ng-controller="pickedAssocCtrl" id="chooseme-box">
                <table class="table table-hover">
                    <tr>
                        <td>合作时间</td>
                        <td>合作编号</td>
                        <td>社团名称</td>
                        <td>社团地区（省-市-学校）</td>
                        <td>企业赞助书</td>
                        <td>社团活动书</td>
                        <td>社团方案</td>
                        <td>付款状态</td>
                        <td>合作策划书状态</td>
                        <td>活动状态</td>
                        <td>资金动态</td>
                        <td>第一次活动反馈</td>
                        <td>第二次活动反馈</td>
                        <td>是否有平台线下团队服务</td>
                        <td>平台线下团队服务反馈</td>
                        <td>申请发票</td>
                    </tr>
                    <tr ng-repeat="x in names">
                        <td>{{x.ProItem.SubmitTime | date:'yyyy-MM-dd'}}</td>
                        <td>{{x.ProItem.ContractNO}}</td>
                        <td>{{x.ProItem.Association.Name}}</td>
                        <td>{{x.ProItem.Association.ProvinceName +'-' +x.ProItem.Association.CityName+'-'+ x.ProItem.Association.SchoolName}}</td>
                        <td><a href="#" tag="{{x.ProjectNO}}" onclick="Go(this, 'Books')">{{x.ProjectName}}</a></td>
                        <td><a href="#" tag="{{x.ProItem.status=='3'?'#':x.ProItem.ProjectNOSelf}}" onclick="Go(this, 'AssocBooks')">{{x.ProItem.status=='3'?'#':x.ProItem.ProjectSelf.ProjectName}}</a></td>
                        <td><a href="#" tag="{{x.ProItem.status=='3'?x.ProItem.ProjectNOSelf:'#'}}" onclick="Go(this, 'AssocScheme')">{{x.ProItem.status=='3'?x.ProItem.ProjectSelf.ProjectName:''}}</a></td>

                        <td>{{x.MoneyStatus==0?'未付款':'已付款'}}</td>
                        <td>
                            {{x.BookStatus==0 ?"策划书生成中":"策划书已生成"}}<br />
                            {{x.ProItem.IsStudentConfirm==ture ?"学生已确认":"学生未确认"}}<br />
                            {{x.ProItem.IsCompanyConfirm==ture ?"企业已确认":"企业未确认"}}<br />
                        </td>
                        <td>{{x.ProItem.Status==1 ?"活动准备中":x.ProItem.Status==4 ?"活动进行中":"活动反馈中"}}</td>
                        <td>{{x.ProItem.MoneyStatus==0?'学生还没有获得钱':'学生已经获得钱'}}</td>
                        <td><span ng-repeat="y in x.ProItem.ListFiled |filter: {Fun:3}">{{y.FieldValue}}</span></td>
                        <td><span ng-repeat="y in x.ProItem.ListFiled |filter: {Fun:4}">{{y.FieldValue}}</span></td>

                        <td>{{x.ProItem.HaveOffLineTeam==ture?"有":"无"}}</td>
                        <td><span ng-repeat="y in x.ProItem.ListFiled |filter: {Fun:5}">{{y.FieldValue}}</span></td>

                        <td>{{x.ProItem.HaveInvoice==ture?"有":"无"}}</td>
                    </tr>
                </table>
            </div>
        </div>

    </div>
</body>
</html>
<script>

    $("#searchPage").load("header.html", function () {
        SetCss("Spon");
    });

    function Go(obj, mode) {

        var id = $(obj).attr("tag");

        layer.ready(function () {

            layer.open({
                type: 2,
                title: '宾果高校',
                fix: false,
                shadeClose: true,
                maxmin: false,
                area: ['1000px', '500px'],
                content: 'Message.html?mode=' + mode + '&id=' + id,
                end: function () {

                }
            });
        });
    }
</script>